package com.mxz.common.core.exception.base;

/**
 * 基础异常
 * TODO 删除
 * @author mxz
 */
public class BaseException extends RuntimeException {
    private static final long serialVersionUID = 1L;

    /**
     * 所属模块
     */
    private String module;

    /**
     * 错误提示
     */
    private String message;

    /**
     * 错误明细，内部调试错误
     */
    private String detailMessage;

    public BaseException(String module, String message, String detailMessage) {
        this.module = module;
        this.message = message;
        this.detailMessage = detailMessage;
    }

    public BaseException(String module, String message) {
        this(module, message, null);
    }

    public BaseException(String message) {
        this(null, message, null);
    }

    public String getModule() {
        return module;
    }

    public String getMessage() {
        return message;
    }

    public String getDetailMessage() {
        return detailMessage;
    }
}
